package com.yeyks.other.dal.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 活动通知表
 * </p>
 *
 * @author yun
 * @since 2019-06-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="ActivityInfo对象", description="活动通知表")
public class ActivityInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "标题")
    @TableField("title")
    private String title;

    @ApiModelProperty(value = "消息通知内容")
    @TableField("content")
    private String content;

    @ApiModelProperty(value = "活动链接 或 活动富文本内容")
    @TableField("url_or_text")
    private String urlOrText;

    @ApiModelProperty(value = "1:可用 0、不可用")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "创建日期")
    @TableField("create_time")
    private Date createTime;

    @TableField("update_time")
    private Date updateTime;

    @ApiModelProperty(value = "操作人id")
    @TableField("operator")
    private Integer operator;

    @ApiModelProperty(value = "1.url 2.富文本")
    @TableField("type")
    private Integer type;


    public static final String ID = "id";

    public static final String TITLE = "title";

    public static final String CONTENT = "content";

    public static final String URL_OR_TEXT = "url_or_text";

    public static final String STATUS = "status";

    public static final String CREATE_TIME = "create_time";

    public static final String UPDATE_TIME = "update_time";

    public static final String OPERATOR = "operator";

    public static final String TYPE = "type";

}
